#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

int main()
{
	//int a[] = { 50,100,70,65,60,32 };
	int a[] = { 60,70,65,50,32,100 };

	Hp hp;
	HpInit(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HpPush(&hp, a[i]);
	}

	//printf("%d\n", HpTop(&hp));
	//HpPop(&hp);
	//printf("%d\n", HpTop(&hp));
	while (!HpEmpty(&hp))
	{
		printf("%d\n", HpTop(&hp));
		HpPop(&hp);
	}

	HpDestory(&hp);
	return 0;
}
